﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Dao;
using InformationSystem.BLL.Core.Model;

namespace InformationSystem.BLL.Core.Service.Impl
{
    public class SystemServiceImpl : ISystemService
    {
        public ISystemDao SystemDao;
        public void CreateTraffic(Traffic traffic)
        {
            SystemDao.CreateTraffic(traffic);
        }

        public IList<Traffic> GetTrafficByMonth(int year, int month)
        {
            return SystemDao.GetTrafficByMonth(year, month);
        }

        public IList<Traffic> GetTrafficByYear(int year)
        {
            return SystemDao.GetTrafficByYear(year);
        }


        public void RegisterSystem(SysRegEnvironment sys)
        {
            SystemDao.RegisterSystem(sys);
        }

        public SysRegEnvironment ReadSystemInfo()
        {
            return SystemDao.ReadSystemInfo();
        }
    }
}
